package com.sqx.modules.riderLine.entity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *
 * 骑手在线时长
 *
 * @author wuChang
 * @since 2024-05-20
 */
@Data
@TableName("rider_line")
public class RiderLine implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @ApiModelProperty("记录id")
    @TableId(value = "line_id", type = IdType.AUTO)
    private Long lineId;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 开始时间
     */
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /**
     * 已在线时长
     */
    @ApiModelProperty("已在线时长")
    private Integer lineDuration;


}
